﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Differences.aspx.cs" Inherits="ExtendedWorkFlow.Pages.Differences"
    MasterPageFile="~/umbraco/masterpages/umbracoPage.Master" %>

<%@ Register TagPrefix="UmbracoControls" Namespace="umbraco.uicontrols" Assembly="controls" %>
<%@ Register TagPrefix="UmbracoControls" Namespace="umbraco.controls" Assembly="umbraco" %>
<%@ Import Namespace="umbraco" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="umbraco.cms.businesslogic.property" %>
<asp:Content ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .propertyItemheader
        {
            width: 140px !important;
        }
        .diff
        {
            margin-top: 10px;
            height: 100%;
            overflow: auto;
            border: 1px solid #ccc;
            font-family: verdana;
            font-size: 11px;
            padding: 5px;
            height: 450px;
        }
        .diff table
        {
            border: 0;
        }
        .diff table td
        {
            border-bottom: 1px solid #ccc;
            padding: 3px;
        }
        .diff del
        {
            background: rgb(255, 230, 230) none repeat scroll 0%;
            -moz-background-clip: -moz-initial;
            -moz-background-origin: -moz-initial;
            -moz-background-inline-policy: -moz-initial;
        }
        .diff ins
        {
            background: rgb(230, 255, 230) none repeat scroll 0%;
            -moz-background-clip: -moz-initial;
            -moz-background-origin: -moz-initial;
            -moz-background-inline-policy: -moz-initial;
        }
        .diff .diffnotice
        {
            text-align: center;
            margin-bottom: 10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
    <div class="diff">
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
            <asp:Repeater ID="rptProperties" runat="server">
                <ItemTemplate>
                    <tr>
                        <td style="width: 20%;">
                            <%# ((PropertyDifference)Container.DataItem).Property.PropertyType.Name%>
                        </td>
                        <td style="width: 80%; vertical-align: top;">
                            <%# library.ReplaceLineBreaks(umbraco.cms.businesslogic.utilities.Diff.Diff2Html(
                            library.StripHtml(((PropertyDifference)Container.DataItem).Published.ToString()),
                            library.StripHtml(((PropertyDifference)Container.DataItem).Design.ToString())))%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
</asp:Content>
